﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>SilverlightDesktop</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>    
        <img alt="SilverlightDesktop.net" src="images/SilverlightDesktop_small.gif" 
            style="width: 264px; height: 122px" /></div>
    <asp:LinkButton ID="lnkLogin" runat="server" PostBackUrl="~/Login.aspx" 
        Visible="False">Login</asp:LinkButton>
    <asp:LinkButton ID="lnkLogOut" runat="server" onclick="lnkLogOut_Click" 
        Visible="False">Log Out</asp:LinkButton>
    <br />
    <asp:LinkButton ID="lnkSetup" runat="server" PostBackUrl="~/SetupWizard.aspx" 
        Visible="False">Click 
    here to set-up SilverlightDesktop</asp:LinkButton>
    <br />
    <asp:LinkButton ID="lnkAdministration" runat="server" 
        PostBackUrl="~/Administration/Default.aspx" Visible="False">Go to 
    Administration</asp:LinkButton>
    <br />
    <br />
    <asp:LinkButton ID="lnkSilverlightDesktop" runat="server" 
        PostBackUrl="~/SilverlightDesktop/SilverlightDesktop.aspx" Visible="False">Go to your 
    SilverlightDesktop</asp:LinkButton>
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:TemplateField HeaderText="Desktops">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl='<%# Eval("ID", "~/SilverlightDesktop/SilverlightDesktop.aspx?ID={0}") %>' 
                        Text='<%# Eval("DesktopName", "{0}") %>'></asp:HyperLink>
                </ItemTemplate>
                <HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                    HorizontalAlign="Left" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </form>
</body>
</html>
